package br.com.tiespec.model.Modelo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="ti_fluxo_base")
public class FluxoBase extends EntidadeGenerica {

	private static final long serialVersionUID = -396920157459379573L;

	@Column(length=255)
	private String acao;
	
	@Column(name="cod_fluxo", length=32)
	private String codFluxo;
	
	@ManyToOne(fetch=FetchType.LAZY, optional=true)
	@JoinColumn(name="cenario_base_id")
	private CenarioBase cenarioBase;
	
	@Override
	public String toJson() {
		return null;
	}
	
	public String getAcao() {
		return acao;
	}
	
	public void setAcao(String acao) {
		this.acao = acao;
	}
	
	public String getCodFluxo() {
		return codFluxo;
	}
	
	public void setCodFluxo(String codFluxo) {
		this.codFluxo = codFluxo;
	}
	
	public CenarioBase getCenarioBase() {
		return cenarioBase;
	}
	
	public void setCenarioBase(CenarioBase cenarioBase) {
		this.cenarioBase = cenarioBase;
	}
}